Optimal. Leaf size=48 \[ \frac{(a-b) \cos ^3(e+f x)}{3 f}-\frac{(a-2 b) \cos (e+f x)}{f}+\frac{b \sec (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0470021, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3664, 448} \[ \frac{(a-b) \cos ^3(e+f x)}{3 f}-\frac{(a-2 b) \cos (e+f x)}{f}+\frac{b \sec (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3664
Rule 448
Rubi steps
\begin{align*} \int \sin ^3(e+f x) \left (a+b \tan ^2(e+f x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (-1+x^2\right ) \left (a-b+b x^2\right )}{x^4} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \left (b+\frac{-a+b}{x^4}+\frac{a-2 b}{x^2}\right ) \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{(a-2 b) \cos (e+f x)}{f}+\frac{(a-b) \cos ^3(e+f x)}{3 f}+\frac{b \sec (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0494669, size = 72, normalized size = 1.5 \[ -\frac{3 a \cos (e+f x)}{4 f}+\frac{a \cos (3 (e+f x))}{12 f}+\frac{7 b \cos (e+f x)}{4 f}-\frac{b \cos (3 (e+f x))}{12 f}+\frac{b \sec (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.063, size = 72, normalized size = 1.5 \begin{align*}{\frac{1}{f} \left ( -{\frac{a \left ( 2+ \left ( \sin \left ( fx+e \right ) \right ) ^{2} \right ) \cos \left ( fx+e \right ) }{3}}+b \left ({\frac{ \left ( \sin \left ( fx+e \right ) \right ) ^{6}}{\cos \left ( fx+e \right ) }}+ \left ({\frac{8}{3}}+ \left ( \sin \left ( fx+e \right ) \right ) ^{4}+{\frac{4\, \left ( \sin \left ( fx+e \right ) \right ) ^{2}}{3}} \right ) \cos \left ( fx+e \right ) \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.06492, size = 59, normalized size = 1.23 \begin{align*} \frac{{\left (a - b\right )} \cos \left (f x + e\right )^{3} - 3 \,{\left (a - 2 \, b\right )} \cos \left (f x + e\right ) + \frac{3 \, b}{\cos \left (f x + e\right )}}{3 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.93285, size = 111, normalized size = 2.31 \begin{align*} \frac{{\left (a - b\right )} \cos \left (f x + e\right )^{4} - 3 \,{\left (a - 2 \, b\right )} \cos \left (f x + e\right )^{2} + 3 \, b}{3 \, f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan ^{2}{\left (e + f x \right )}\right ) \sin ^{3}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.48716, size = 103, normalized size = 2.15 \begin{align*} \frac{b}{f \cos \left (f x + e\right )} + \frac{a f^{5} \cos \left (f x + e\right )^{3} - b f^{5} \cos \left (f x + e\right )^{3} - 3 \, a f^{5} \cos \left (f x + e\right ) + 6 \, b f^{5} \cos \left (f x + e\right )}{3 \, f^{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]